package com.cloud.dao;

import com.cloud.pojo.UserApplyVolunteer;
import com.cloud.pojo.ApplyVolunteer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;


/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 14:49 2022/4/18
 * @Description:
 * @ClassName:
 */

@Mapper
public interface ApplyVolunteerDao {

    int create(ApplyVolunteer applyVolunteer);

    int userUpdate(@Param("id") int id, @Param("volunteerLocation") int volunteerLocation,
               @Param("volunteerTime") Date volunteerTime);

    int delete(int id);

    List<UserApplyVolunteer> userRetrieve(String userId);

    List<UserApplyVolunteer> approvalRetrieve(Integer defaultRegion);

    int approvalUpdate(@Param("id") int id, @Param("state") String state);

    int setUserTypeToVolunteer(@Param("userId") String userId);
}
